﻿@model IMembershipModel

@AddControls(
    new Fieldset("w51p mh100 ", Str.Controllers.User)
    {
        new DefinitionList(PercentForLabel.p30)
        {
            new TextOrInput(true)
                .SetSourceProperty(() => SecurityManager.UserLogin),

            new TextOrInput(true)
                .SetSourceProperty(() => SecurityManager.User.Display),

            new AsyncComboBox()
                .SetComboBoxSelectedValue(SecurityManager.User.CurrentRole)
                .SetAsyncController(Model.MasterModel.ControllerName)
                .SetAsyncAction("ComboBoxRoles")
                .SetComboBoxName("UserRoleList"),
        }
    })